<?xml version="1.0" encoding="ISO-8859-1" ?>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<!DOCTYPE html >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link href="css/style.css" rel="stylesheet" />
<title>Trastienda - Productos</title>
</head>
<body>
<%@include file="header.jsp"%>
	<%@include file="sidebarLeft.jsp"%>
	<div class="center_content">
	<h3>Mantenimiento de Productos</h3>
	<form action="verRegistro.html" method="get">
		<input type="submit" name="btnNuevo" id="btnNuevo" value="Nuevo" />
	</form>
	<table border="1">
		<tr>
			<td>Nombre</td>
			<td>Descripcion</td>
			<td>Editar</td>
			<td>Eliminar</td>
		</tr>


		<c:forEach items="${requestScope.PRODUCTOS}" var="r" varStatus="i">
			<tr>
				<td>${r.nombre}</td>
				<td>${r.descripcion}</td>
				<td align="center">
					<a href="editar.html?id=${r.idProducto}">
						<img src="images/editar.jpg" alt="" title=""	border="0" />
					</a>
				</td>
				<td align="center"><a href="eliminar.html?id=${r.idProducto}"><img src="images/delete.gif" alt="" title="" border="0" /></a></td>
			</tr>			
		</c:forEach>
	</table>
		</div>
	<!-- end of center content -->


	<%@include file="sidebarRightMain.jsp"%>
	<%@include file="footer.jsp"%>
</body>
</html>